import Mock from 'mockjs'
 
const data ={
    "status":1,
    "data":{
        "info":{
            "token":"[dC5oXWMT&2XmSlY9Bh6HExiSJs6Vub7",
    "adminName":"administrator"},
    "menus":[{"menuId":1,
    "menuName":"控制台",
    "menuIcon":"el-icon-menu",
    "menuCode":"home",
    "menuUrl":null},
    {"menuId":2,
    "menuName":"系统管理",
    "menuIcon":"el-icon-setting",
    "children":[{"menuId":3,
    "menuName":"管理员管理",
    "menuIcon":"null",
    "children":[{"menuId":4,
    "menuName":"管理员列表",
    "menuIcon":null,
    "menuCode":"system_admin_list",
    "menuUrl":null}]},
    {"menuId":5,
    "menuName":"角色列表",
    "menuIcon":null,
    "menuCode":"system_role_list",
    "menuUrl":null}]},
    {"menuId":6,
    "menuName":"组件",
    "menuIcon":"el-icon-menu",
    "children":[{"menuId":7,
    "menuName":"权限按钮",
    "menuIcon":null,
    "menuCode":"psWFStg",
    "menuUrl":"/test/button"},
    {"menuId":8,
    "menuName":"下拉框",
    "menuIcon":null,
    "menuCode":"pDUNf",
    "menuUrl":"/test/select"},
    {"menuId":9,
    "menuName":"表格",
    "menuIcon":null,
    "menuCode":"KAR",
    "menuUrl":"/test/table-pager"},
    {"menuId":10,
    "menuName":"上传",
    "menuIcon":null,
    "menuCode":"kayJp","menuUrl":"/test/upload"},
    {"menuId":11,
    "menuName":"编辑器",
    "menuIcon":null,
    "menuCode":"oDf",
    "menuUrl":"/test/editor"}]},
    {"menuId":12,
    "menuName":"测试",
    "menuIcon":"el-icon-menu",
    "menuCode":"DOButTc",
    "menuUrl":"/test"}],
    "modules":["home",
    "system_admin_list",
    "system_admin_create",
    "system_admin_edit",
    "system_admin_del",
    "system_role_create","system_role_del"
]}}

Mock.mock('/api/account/login', 'post', data);


const data2 = {
    userName: 'wangxue',
    role: '1'
}
Mock.mock('/api/account/user', 'post', data2)

 
export default Mock;